﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class DichVu_BUS
    {
        public static DataTable DanhSachDichVu()
        {
            return DichVu_DAO.DanhSachDichVu();
        }

        public static DataTable DanhSachDichVuTheoMa(string ma)
        {
            return DichVu_DAO.DanhSachDichVuTheoMa(ma);
        }

        public static Boolean ThemDichVu(DichVu_DTO dv_DTO)
        {
            try
            {
                return DichVu_DAO.ThemDichVu(dv_DTO);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static Boolean XoaDichVu(string Ma)
        {
            return DichVu_DAO.XoaDichVu(Ma);
        }

        public static Boolean CapNhatDichVu(DichVu_DTO dv_DTO)
        {
            return DichVu_DAO.CapNhatDichVu(dv_DTO);
        }
    }
}
